package com.hmdp.utils;

/**
 * @author 张一恒
 * @version 1.0
 * @description: 分布式锁set
 * @date 2022/11/25 15:15
 */
public interface ILock {

    //开启锁
    boolean tryLock(long timeoutSec);

    //释放锁
    void unlock();
}
